Global Classes

BlockUtil

BlockUtil The BlockUtil class provides various methods for working with blocks and block posiotions. Method summary BlockUtil.newBlockPos(x: int, y: int, z: int): BlockPos Creates a new BlockPos for the given coordinates. List of parameters: x, x coordinate of the position. y, y coordinate of the ...

Client

Client The Client class provides various methods to facilitate interaction with the client. Method summary Client.displayChatMessage(message: string): void Prints the given message to the chat locally. It is not sent to the server. List of parameters: message, the message to print. Field summary ...

InteractionUtil

InteractionUtil The InteractionUtil class provides various methods for interacting with the environment. Method summary InteractionUtil.attackEntity(entity: Entity, swing: boolean, keepSprint: boolean): void Attempts to attack the given entity. List of parameters: entity, the entity to attack. swi...

ItemUtil

ItemUtil The ItemUtil class provides methods for the creation of items. Method summary ItemUtil.create(arguments: string): ItemStack Returns an ItemStack with one item of the given arguments. List of parameters: arguments, the arguments to create the item with (same syntax to /give command). Ite...

MovementUtil

MovementUtil Provides various methods related to player movement. Method summary MovementUtil.getSpeed(): float Returns the speed the player is moving at. MovementUtil.isMoving(): boolean Returns whether the player is moving. MovementUtil.strafe(): void Makes the player strafe. MovementUtil.straf...

NetworkUtil

NetworkUtil The NetworkUtil class provides various methods to facilitate interaction with Minecraft's networking features. Method summary NetworkUtil.movePlayerGround(onGround: boolean): void Sends an PlayerMoveC2SPacket.OnGroundOnly packet. List of parameters: onGround, whether movement if on gro...

ParameterValidator

ParameterValidator The ParameterValidator class contains various builtin validation methods for client command parameters. A validation function ensures the given parameter satisfies its requirements and can also perform a parameter transformation. For example, ParameterValidator.module ensures the ...

ReflectionUtil

ReflectionUtil Since Minecraft's field and method names are obfuscated at runtime, accessing them through reflection would require using obfuscated names. This class provides various reflection related methods which automatically apply mapping to deobfuscate the code. Method summary ReflectionUtil.c...

RotationUtil

RotationUtil The InteractionUtil class provides various methods to facilitate the creation of rotations. Method summary RotationUtil.newRaytracedRotationEntity(entity: Entity, range: float, throughWallsRange: float): Rotation Returns the optimal rotation for facing the given entity. It uses raytraci...

Setting

Setting The Setting class provides methods for creating module settings. Refer to here for information how to integrate them with modules. Method summary Setting.boolean(options: Object): Value Creates a new boolean setting (either on or off). Parameter properties: Property Description Type ...